import GrandSon from './grandson'

function Child1(props) {
console.log(props)
const setNUm =()=>{
  props.setCount(props.count+1)
}

  return (
    <div style={{background:'red'}} onClick={setNUm}>
      Child1:{props.count}
      <div className='grandson'>
        <GrandSon></GrandSon>
      </div>  
      <div>{props.children[0]}</div>
    </div>
  );
}

export default Child1;
